﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.ComponentModel;

namespace TLD_LPR.AlgorithmBase
{
    /// <summary>
    /// This class may be used for any kind of algorithm that starts AND ends with a bitmap.
    /// </summary>
    public abstract partial class VisionAlgorithm : TLD_LPR.AlgorithmBase.Algorithm
    {
        /// <summary>
        /// The constructor for a VisionAlgorithm.
        /// </summary>
        /// <param name="name">The name of the algorithm. This is used to show the algorithm in menu's.</param>
        public VisionAlgorithm(string name) : base(name){ }
        /// <summary>
        /// Runs a visionAlgorithm
        /// </summary>
        /// <param name="sourceImage">The image to process</param>
        /// <returns>The processed image</returns>
        public abstract Bitmap DoAlgorithm(Bitmap sourceImage);
    }

}